<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>函数的参数和返回值</title>
</head>
<body>
    <script>
        function add(a,b)
        result = a + b
        return console.log(result)

    // 调用
    add(1,2)

    // 参数聚合
    function fn(){
        console.log(arguments)
    }

    // 调用
    fn(1,2,3,4,5,6)

    </script>
</body>
</html>